// @Date         2021-11-10
// @Author       Aaron Zhang
// @Description
// @FileName      framework_engine.go

package gin

import "zin/framework"

func (engine *Engine) SetContainer(container framework.Container) {
	engine.container = container
}

func (engine *Engine) Bind(provider framework.ServiceProvider) error {
	return engine.container.Bind(provider)
}
func (engine *Engine) MustMake(provider string) interface{} {
	return engine.container.MustMake(provider)
}

// MakeNew 实现makeNew的封装
func (engine *Engine) MakeNew(key string, params map[string]interface{}) (interface{}, error) {
	return engine.container.MakeNew(key, params)
}

func (engine *Engine) IsBind(key string) bool {
	return engine.container.IsBind(key)
}
